package com.ruoyi.common.core.domain.heytalk.vo;

import com.ruoyi.common.core.domain.heytalk.ImUser;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * im用户登录身份权限
 * @author zhusy
 * @since 2021/10/24
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginImUser
{
    private static final long serialVersionUID = 1L;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 用户唯一标识
     */
    private String token;

    /**
     * 登录时间
     */
    private Long loginTime;

    /**
     * 过期时间
     */
    private Long expireTime;

    /**
     * 登录IP地址
     */
    private String ipaddr;

    /**
     * 登录地点
     */
    private String loginLocation;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 用户信息
     */
    private ImUser user;

    public LoginImUser(String userId, ImUser user) {
        this.userId = userId;
        this.user = user;
    }

}
